package com.crm.mapper;

import com.crm.pojo.domain.Role;
import com.crm.pojo.dto.RoleDto;
import com.crm.pojo.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper {
    List<RoleVo> list(RoleDto roleDto);

    void add(Role role);

    int addRoleMenu(Long roleId, List menuIds);

    void changeStatus(RoleDto roleDto);

    List<RoleVo> roles(Long userId);
}
